package com.example.myqcloud.oss.cloud;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 云存储配置信息
 *
 * @author 江黎
 * @since 2022-05-12
 */
@Data
@Component
@ConfigurationProperties(prefix = "qcloud")
public class CloudStorageProperties {

    /**
     * 腾讯云绑定的域名
     */
    private String domain;

    /**
     * 腾讯云默认存储路径
     */
    private String defaultPath;

    /**
     * 腾讯云AppId
     */
    private Integer appId;

    /**
     * 腾讯云SecretId
     */
    private String secretId;

    /**
     * 腾讯云SecretKey
     */
    private String secretKey;

    /**
     * 腾讯云BucketName
     */
    private String bucketName;

    /**
     * 腾讯云COS所属地区
     */
    private String region;

}